package com.uniledger.exchange.db;

import android.arch.persistence.room.Database;
import android.arch.persistence.room.RoomDatabase;
import android.arch.persistence.room.TypeConverters;

import com.uniledger.exchange.bank.BankCard;
import com.uniledger.exchange.bank.BankCardDao;
import com.uniledger.exchange.login.Admin;
import com.uniledger.exchange.login.AdminDao;
import com.uniledger.exchange.wallet.WalletKey;
import com.uniledger.exchange.wallet.WalletKeyDao;

// 数据库注解，必须。entities指定实体类，version指定数据库版本
@Database(entities = {BankCard.class, Admin.class, WalletKey.class}, version = 1)
@TypeConverters({Converters.class})
public abstract class UniDatabase extends RoomDatabase {
    public abstract BankCardDao bankCardDao();

    public abstract AdminDao adminDao();

    public abstract WalletKeyDao keyDao();

}
